<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>微信消息模板</title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<style type="text/css">
#tags {
	font-size: 12px;
	font-weight: bolder;
	min-height: 40px;
}

#tags li {
	list-style-image: none;
	list-style-type: none;
	border: 1px solid #999;
	float: left;
	width: 120px;
	min-height: 40px;
	text-align: center;
	line-height: 60px;
	margin: 2px;
	position: relative;
}

.keyword-tag img{
	width: 15px;
	height: 15px;
	position: absolute;
	top: 2px;
	right: 2px;
}

.keyword-tag img:hover {
	background-color: #ccc;
}
</style>
<script type="text/javascript">
	
</script>
</head>
<body>
	<t:formvalid formid="formobj" dialog="true" usePlugin="password"
		layout="table" action="wxAppMsgTemplateController.do?doAdd"
		tiptype="1">
		<input id="id" name="id" type="hidden"
			value="${wxAppMsgTemplatePage.id }">
		<input id="createName" name="createName" type="hidden"
			value="${wxAppMsgTemplatePage.createName }">
		<input id="createBy" name="createBy" type="hidden"
			value="${wxAppMsgTemplatePage.createBy }">
		<input id="createDate" name="createDate" type="hidden"
			value="${wxAppMsgTemplatePage.createDate }">
		<input id="updateName" name="updateName" type="hidden"
			value="${wxAppMsgTemplatePage.updateName }">
		<input id="updateBy" name="updateBy" type="hidden"
			value="${wxAppMsgTemplatePage.updateBy }">
		<input id="updateDate" name="updateDate" type="hidden"
			value="${wxAppMsgTemplatePage.updateDate }">
		<input id="sysOrgCode" name="sysOrgCode" type="hidden"
			value="${wxAppMsgTemplatePage.sysOrgCode }">
		<input id="sysCompanyCode" name="sysCompanyCode" type="hidden"
			value="${wxAppMsgTemplatePage.sysCompanyCode }">
		<table style="width: 600px;" cellpadding="0" cellspacing="1"
			class="formtable">
			<tr>
				<td align="right" colspan="2"><label class="Validform_label">小程序名称:
				</label></td>
				<td class="value" colspan="4"><input id="appId" name="appId"
					readonly="readonly" class="inputxt" datatype="*" type="hidden" />
					<input id="appName" name="appName" readonly="readonly"
					class="inputxt" datatype="*" /> <a href="#"
					class="easyui-linkbutton" plain="true" icon="icon-search"
					id="appSearch" onclick="openAppSelect()">选择</a> <a href="#"
					class="easyui-linkbutton" plain="true" icon="icon-redo"
					id="appSearchReset" onclick="callbackClean()">清空</a> <span
					class="Validform_checktip" style="float: left; height: 0px;"></span>
					<label class="Validform_label" style="display: none">小程序名称</label>
				</td>
			</tr>
			<tr>
				<td align="right" colspan="2"><label class="Validform_label">模板库标题:
				</label></td>
				<td class="value" colspan="4"><input id="name" name="name"
					type="text" readonly="readonly" class="inputxt" datatype="*" /> <input
					id="templateId" name="templateId" type="hidden" readonly="readonly"
					class="inputxt" datatype="*" /> <a href="#"
					class="easyui-linkbutton" plain="true" icon="icon-search"
					onclick="selectMsgTemplateTitle()">选择</a> <a href="#"
					class="easyui-linkbutton" plain="true" icon="icon-redo"
					onclick="clearMsgTemplateTitle()">清空</a> <span
					class="Validform_checktip"></span> <label class="Validform_label"
					style="display: none;">模板库标题</label></td>
			</tr>
			<tr>
				<td align="right" colspan="2"><label class="Validform_label">
						关键词: </label></td>
				<td class="value" >
					<ul id="tags">
					
					</ul> <input id="content" name="content" type="hidden" 
					readonly="readonly" class="inputxt" /> <a href="#"
					class="easyui-linkbutton" plain="true" icon="icon-search"
					onclick="selectTemplateKeyword()">添加</a> <span
					class="Validform_checktip"></span> <label class="Validform_label"
					style="display: none;">内容</label>
				</td>
			</tr>
			<tr>
				<td align="right" colspan="2" style="height: 40px;"><label class="Validform_label">
						消息类型: </label></td>
				<td class="value" colspan="4"><t:dictSelect field="type" 
						type="list" typeGroupCode="appMsgType" hasLabel="false"
						title="消息类型"></t:dictSelect> <span class="Validform_checktip"></span>
					<label class="Validform_label" style="display: none;">消息类型</label>
				</td>
			</tr>
		</table>

	</t:formvalid>
</body>
<script
	src="webpage/com/gomore/wechat/component/message/wxAppMsgTemplate.js"></script>